<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>">
<script type="text/javascript" src="js/check.js"></script>
<link href="css/publish_center.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css"
	href="dist/css/wangEditor.min.css">
<style type="text/css">
.container {
	width: 100%;
}

#div1 {
	width: 100%;
	height: 300px;
}
</style>
<div class="max_1">
	<div id="table">
		<div id="title1">发布兼职</div>

		<div id="line"></div>

		<c:if test="${!empty err}">
			<div id="login">
				<font color="#FF0000">${err }</font>
			</div>
		</c:if>


		<div id="title1">兼职信息</div>
		<form action="job/publish" method="post" id="form1"
			enctype="multipart/form-data" onsubmit="return jobCheck()">
			<div id="message">
				<p>
					<font color="#FF0000" style="padding-left: 20px">*</font>兼职名称<font
						style="font-size: 13px; font-weight: inherit; padding-left: 10px; color: red;">3-20个字符</font>
				</p>
				<textarea name="job.title" id="title" rows="2" cols="80"></textarea>

			</div>

			<br />
			<p>
				<font color="#FF0000" style="padding-left: 20px">*</font>兼职内容<font
					style="font-size: 13px; font-weight: inherit; padding-left: 10px; color: red;">5-9000个字符，样式会占用大量字符</font>
			</p>
			<div class="container">
				<textarea name="job.info" id="info" rows="20"></textarea>
			</div>


			<script type="text/javascript" src="dist/js/lib/jquery-1.10.2.min.js"></script>
			<script type="text/javascript" src="dist/js/wangEditor.js"></script>

			<script type="text/javascript">
				var editor = new wangEditor('info');
			<%--自定义菜单--%>
				editor.config.menus = [ 'location', '|', 'bold', 'underline',
						'italic', 'strikethrough', 'eraser', 'forecolor',
						'bgcolor' ];

				editor.create();
			</script>

			<div id="picture">
				<p>兼职图片</p>

				<input type="file" name="upload" id="upload" value="选择文件"
					accept=".jpg,.JPG"> !大小不超过1M，jpg类型 </input>

			</div>
			<div id="message2">
				<p>
					<font color="#FF0000" style="padding-left: 20px">*</font>验证码 <img
						src="code?id=${request.Coderandom}"
						onclick="this.src='code?id='+Math.random()" />
				</p>
				<input type="text" name="code" id="code" rows="2" cols="20">
			</div>

			<a href="javascript:void(0);" class="sui-btn btn-xlarge btn-primary"
				onclick="document.getElementById('form1').submit();">提交</a>
		</form>
	</div>
</div>
